<include file="__THEME__/header" />

<include file="../Public/top_reg" />
<div class="content no_bg"><!-- 内容 begin  -->
  <div class="main no_l">
    <div class="mainbox">
    <div class="mainbox_R">
    <p class="right_box" >
	<a href="{:U('home/Myshop/add')}" class="btn_reg" >免费发布信息</a>
	</p>
    <php>if(!$mid){</php>
    <include file="__THEME__/login" />
    <php>}</php>
    {:W('Recshop')}
    {:W('Recuser')}
   <div class="right_box">
   <script type="text/javascript"><!--
	google_ad_client = "ca-pub-1704385913878111";
	/* 销售页 */
	google_ad_slot = "3951910903";
	google_ad_width = 200;
	google_ad_height = 200;
	//-->
	</script>
	<script type="text/javascript"
	src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
	</script>
   </div>
  </div>
      <div class="mainbox_CR" >
        <include file="_tab" />
        <php>if($aboutkey){</php>
        <div class="topic_bg">
        <div class="topic">
            <div class="dt">
              <gt name="mid" value="0">
              <em><img class="icoWrite" src="__THEME__/images/zw_img.gif" alt="图片"/> <a href="javascript:void(0)" onclick="weibo.quickpublish('#{$aboutkey|str_replace='"','&quot;',###|addslashes}# ')">我也说几句</a> &nbsp;&nbsp;<span class="ico_tuijian" style="margin:0"></span> 
              <span id="follow_topic">
	            <if condition="$aboutkey_follow eq 'havefollow'">
	              <a href="javascript:void(0)" onclick="unfollow_topic('{$aboutkey|str_replace='"','&quot;',###|addslashes}','{$aboutkey_id}','#follow_topic')">已关注该话题</a>
	            <else />
	              <a href="javascript:void(0)" onclick="follow_topic('{$aboutkey|str_replace='"','&quot;',###|addslashes}','#follow_topic')">关注该话题</a>
	            </if>
	          </span></em>
	          </gt>
              <strong>今日看点：</strong>大家一起聊"<a href="{:U('home/user/search',array('k'=>$aboutkey))}">{$aboutkey}</a>"吧
            </div>
			<div id="topic_user_list">
            <volist id="vo" name="userlist">
          <div class="topic_user">
	              <div class="dd left pl10" style="width:70px;">
	                <span class="userPic mb10">
	                  <space uid="vo.uid">{uavatar}</space>
	                </span>
	              </div>
	              <div class="dd left" style=" width: 480px;">
	                <h3>
	                  <space uid="vo.uid">{uname}</space>
	                </h3>
	                <p>{$vo.userinfo.location} <a href="{:U('home/Space/follow',array('uid'=>$vo['uid'],'type'=>'follower'))}">粉丝{$vo.follower|intval}人</a></p>
	                <p style=" height:35px; overflow:hidden; display:block; line-height: 18px;"><a href="{:U('home/space/detail',array('id'=>$vo['weibo_id']))}">{$vo.content|getShort=###,66}</a> ({$vo.ctime|friendlyDate})</p>
	              </div>
              </div>
            </volist>
          </div>
        </div>
        </div>
        <php>}</php>
        <div class="laSOSO">
          <div class="left f14px"><strong>搜索一下：</strong></div>
          <div>
            
            <form id="form1" name="form1" method="post" action="{:U('index/Qiugou/index')}"> 
            <p class="sosuo">
            <input type="text" id="s_keyword" name="k" style="width:300px;" class="text mr5" value="搜求购 / 输入商品名试试" onfocus="if(this.value == '搜求购 / 输入商品名试试'){this.value = '';}" onblur="if(this.value == ''){this.value = '搜求购 / 输入商品名试试';}">
            <input type="submit" value="搜索" class="btn_b">
           </p> 
            </form>
          
            <p class="reci">
            <span class="cGray2">热词：</span>
            <volist name="hotkeys" id="hk">
              <a href="{:U('home/user/search',array('k'=>urlencode($hk['name'])))}">{$hk.name|getShort=###,10}</a>&nbsp;&nbsp;
            </volist></p>
          </div>
        </div>
        <!-- ========== 菜单 begin ============= -->
        <div class="tab-menu" id="square_list_tab"><!-- 切换标签 begin  -->
          <ul>
            <li><a class="feed_item" href="{:U('index/Shop/index')}"><span>出售信息</span></a></li>
            <li><a class="feed_item  on" href="{:U('index/qiugou/index')}"><span>求购信息</span></a></li>
            <li><a class="feed_item" href="{:U('index/user/index')}"><span>用户/摊位</span></a></li>
          </ul>
        </div>
<!--商品分类 begin-->
<div class="goods_Type">
<div class="ty <if condition= "$_GET['tid']==0 || $_GET[tid]==''"> on</if>">
<strong class="f14px">
<a href="{:U('index/Qiugou/index')}">全部</a>
</strong>
</div>
<volist name="typelist" id="list">
<div class="ty <if condition= "$_GET['tid']==$list['type_id']"> on </if>">
<strong class="f14px">
<a href="{:U('index/Qiugou/index',array('tid'=>$list['type_id']))}">{$list['title']}</a>
</strong>
</div>
</volist>
</div>
<!--商品分类  end-->
   <!--  出售信息  begin--> 
<div class="goodsBox">
<php>if($goodslist){</php>
 <ul class="feed_list">
<volist name="goodslist" id="vo">
<li class="lineD_btm" id="list_{$vo['id']}">
<div class="userPic">
     <space uid="vo.uid" >{uavatar}</space>             
</div>
  <div class="feed_c">
                  <div class="msgCnt"><cite class="right">{$vo.utime|friendlyDate}</cite> {$vo['uname']}: <a href="{:U('shop/index/qgoods',array('uid'=>$vo['uid'],'gid'=>$vo['id']))}">{$vo['title']}</a> </div>
                  <div class="feed_c_btm"> 
	                  <span class="right">
	                    <php>if( $vo['uid'] == $mid ){</php>
	                    <a href="javascript:void(0)" onclick="ui.confirm(this,'确认要删除这条信息?')" callback="Deleted({$vo.id})">删除</a>&nbsp;&nbsp; &nbsp;&nbsp;|&nbsp;&nbsp; 
						<a href="{:U('home/Myqiugou/edit',array('id'=>$vo['id']))}">编辑</a>
						
	                    <php>}</php>
	                  
					  </span> 
					  <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$vo['qq']}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{$vo['qq']}:45" alt="点击这里给我发消息" title="点击这里给我发消息"></a> ￥{$vo['gprice']} &nbsp;&nbsp;|&nbsp;&nbsp;  N {$vo['gnumber']}  &nbsp;&nbsp;|&nbsp;&nbsp; 学校：{$vo['school']}&nbsp;&nbsp;|&nbsp;&nbsp;
					 地区：{$vo['location']}
				  </div>
                  <div style=""></div>
                </div>

</li>
</volist>
</ul>
<php>}else{</php>
暂无内容
<php>}</php>
</div>
<div  class="page">{$page}</div>
<!--  出售信息 end-->     
    </div>
    <div class="clear"></div>
  </div>
</div>
</div>
<!-- 内容 end -->
<script>
function Deleted(goods_id){
    $.post(U('home/Myqiugou/doDel'),{id:goods_id},function(rel){
	    if(rel==1){
		$('#list_'+goods_id).remove();
		ui.success('删除成功');
		ui.box.close();
		}else{
		ui.error('删除失败');		
		}
	
	});

}
</script>
<include file="__THEME__/footer" /> 